package com.ruoyi.energy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.energy.aop.DoubleFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 能耗走势dto
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class EnergyOverviewDto {

    @ApiModelProperty(name = "id", value = "")
    private Long id;

    @ApiModelProperty(name = "assetId", value = "资产id")
    private Long assetId;

    @ApiModelProperty(name = "assetName", value = "资产名称")
    private String assetName;

    @ApiModelProperty(name = "assetCodes", value = "资产编码,分割")
    private String assetCodes;

    @ApiModelProperty(name = "assetCode", value = "资产编码")
    private String assetCode;

    @ApiModelProperty(name = "elecEnergy", value = "电能")
    @DoubleFormat
    private double elecEnergy;

    @ApiModelProperty(name = "hotWaterEnergy", value = "热水")
    @DoubleFormat
    private double hotWaterEnergy;
    @ApiModelProperty(name = "coldWaterEnergy", value = "冷水")

    @DoubleFormat
    private double coldWaterEnergy;
    @ApiModelProperty(name = "natGasEnergy", value = "天然气")

    @DoubleFormat
    private double natGasEnergy;
    @ApiModelProperty(name = "comAirEnergy", value = "压缩空气")

    @DoubleFormat
    private double comAirEnergy;
    @ApiModelProperty(name = "indWaterEnergy", value = "工业水")

    @DoubleFormat
    private double indWaterEnergy;
    @ApiModelProperty(name = "wasteWaterEnergy", value = "废水")

    @DoubleFormat
    private double wasteWaterEnergy;
    @ApiModelProperty(name = "pureWater", value = "纯水")

    @DoubleFormat
    private double pureWater;

    @ApiModelProperty(name = "type", value = "类型")
    private Integer type;

    @ApiModelProperty(name = "workPrice", value = "生产能耗")
    private double workPrice;

    @ApiModelProperty(name = "totalGroupPrice", value = "分组总能耗")
    private double totalGroupPrice;

    @DoubleFormat
    @ApiModelProperty(name = "typeGroupValue", value = "资产类型总能耗")
    private double typeGroupValue;

    @DoubleFormat
    @ApiModelProperty(name = "typeGroupPrice", value = "资产类型总能耗成本")
    private double typeGroupPrice;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(name = "statisticTime", value = "能耗统计时间")
    private Date statisticTime;

    private Double value;

    private String time;
}
